package shape;

public class Circle61 {
	private double radius;
	
	public Circle61(double radius) {
		this.radius=radius;
	}
	public double area() {
		return Math.PI * radius *radius;
	}
	public double perimeter() {
		return 2*Math.PI *radius;
	}
	public static void main(String[] args) {
		Circle61 c1=new Circle61(15.0);
		Circle61 c2=new Circle61(30.0);
		System.out.println("c1面积"+c1.area()+",周长为"+c1.perimeter());
		System.out.println("c2面积"+c2.area()+",周长为"+c2.perimeter());
	}
	
}
